<?php
// +----------------------------------------------------------------------
// | INPHP
// | Copyright (c) 2023 https://inphp.cc All rights reserved.
// | Licensed ( https://opensource.org/licenses/MIT )
// | Author: 幺月儿(https://gitee.com/lulanyin) Email: inphp@qq.com
// +----------------------------------------------------------------------
// | Smarty 模板引擎配置文件
// +----------------------------------------------------------------------
//如果文件夹不存在，由创建文件夹（建议生产环境删除判断）
if(!is_dir(RUNTIME."/smarty")){
    @mkdir(RUNTIME."/smarty/cache", 0777, true);
    @mkdir(RUNTIME."/smarty/compile", 0777, true);
}
return [
    //左边界解析字符， 字符后带空格无效
    "leftDelimiter"    => "{",
    //右边界字符
    "rightDelimiter"   => "}",
    //缓存文件位置
    "cacheDir"         => RUNTIME."/smarty/cache",
    //编译文件
    "compileDir"       => RUNTIME."/smarty/compile",
    //是否缓存
    "caching"           => false,
    //缓存有效时间
    "cacheLifetime"    => 3600,
    //缓存根目录
    "dir"               => RUNTIME."/smarty"
];